Feature: Creating and updating project Notes

Scenario: Defining Notes
* notes have a unique note id
* notes belong to a project
* notes have a title
* notes have a category id
* notes have an HTML text body
* notes have a creation date
* notes have a creator id
* notes have a latest update date

Scenario: Creating a note
Given the user is identified
When the user writes the note title
And the user select the category
And the user writes the text body
And saves the note
Then the note title matches the one provided by the user
And the category matches
And the text body matches
And the project id matches the current project
And the creation date is now
And the creator id is the current user
And the latest update date is now

Scenario: Updating a note
Given the user is identified
When the user updates the note text or title
And saves note changes
Then the note title matches the one provided by the user
And the text body matches
And the creator id is the current user
And the latest update date is now

Scenario: Moving the note to another category
Given the user is identified
When the user moves the note to another category
And the category is in the same project
Then the note category id is updated

Scenario: Moving the note to another project
Given the user is identified
When the user moves the note to another project
Then the note project is updated
And the note category is the DEFAULT one

Scenario: Deleting a note
Given the user is identified
When the user confirms to delete a note
Then the note record is deleted
